package com.itlin.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.itlin.bean.Dish;
import com.itlin.bean.PageParam;
import com.itlin.dto.DishDto;

import java.util.List;

/**
 * @author 所谓伊人
 * @date 2022/3/24 - 20:11
 */
public interface DishService {

    int countByCid(long cid);

    int add(DishDto dishDto);

    IPage<DishDto> findPage(PageParam pageParam);

    int update(DishDto dishDto);

    List<DishDto> findByCategoryId(long categoryId, Integer status);

    int updateStatus(Dish dish,List<Long> ids);

    int deleteById(List<Long> ids);
}
